<%--
  Created by IntelliJ IDEA.
  User: 86177
  Date: 2021/12/16
  Time: 20:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Login</title>
</head>
<body>
    <form action="<%=request.getContextPath()%><c:if test="${handlerPath!=null}">${handlerPath}</c:if><c:if test="${handlerPath==null}">/enter</c:if>" method="post">
        <table align="center">
            <caption>登陆页面</caption>
            <tr><td>用户名:</td><td><input type="text" name="username"></td></tr>
            <tr><td>密码:</td><td><input type="password" name="password"></td></tr>
            <tr><td><input type="submit" value="提交"></td><td><input type="reset" value="重置"></td><td><a href="<%=request.getContextPath()%>/register" title="注册">注册</a></td><td>${errorMsg}</td></tr>
        </table>
    </form>
</body>
</html>
